package com.bum.api.processor.rss.html.bo;

import com.bum.api.core.util.text.VietChar;

public class RssUrlHelper {
	static RssUrlHelper	_instance	= new RssUrlHelper();

	public static RssUrlHelper get() {
		return _instance;
	}

	public String getCleanPath(String name) {
		name = name.toLowerCase().trim().replace("\"", "").replace("'", "");
		name = VietChar.clearVNChars(name);
		name = name.replaceAll("[^a-z0-9]+", "-");
//		return Normalizer.normalize(name, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", "").replaceAll("\\s", "-");
		return name;
	}
}
